import request from '@/plugin/axios'
export function GetUserListAll (query) {
  return request({
    url:
      'api/services/app/User/GetAll?SkipCount=' +
      query.skipCount +
      '&MaxResultCount=' +
      query.maxResultCount + '&Keyword=' + query.keyword + '&IsActive=' + query.isActive,
    method: 'get'
  })
}
export function GetUser (query) {
  return request({
    url: 'api/services/app/User/Get?id=' + query,
    method: 'get'
  })
}
export function GetRoles () {
  return request({
    url: 'api/services/app/User/GetRoles',
    method: 'get'
  })
}
export function Create (query) {
  return request({
    url: 'api/services/app/User/Create',
    method: 'post',
    data: query
  })
}

export function Update (query) {
  return request({
    url: 'api/services/app/User/Update',
    method: 'put',
    data: query
  })
}
export function Delete (query) {
  return request({
    url: 'api/services/app/User/Delete?Id=' + query,
    method: 'delete'
  })
}

export function ResetPassword (query) {
  return request({
    url: 'api/services/app/User/ResetPassword',
    method: 'post',
    data: query
  })
}
export function ChangePassword (query) {
  return request({
    url: 'api/services/app/User/ChangePassword',
    method: 'post',
    data: query
  })
}
